Thank you DJ for the idea, my previous post edited accordingly regarding the javascript part ,works as simply as necessary
I'm still working on the changes that can be made to the default template with a minimum of modifications and that are as simple as possible
probably it will not work on platforms where javascript is disabled, I do not know if it also has an impact on jquery