fixed the templating issue, the tempaltes ll now isplay respecitve sidebars
forgot to finish my commit message. Also added some JS for more instuitive and useful template mmgmt. Fixed the image caoursel add image bug. Fixed styling for the sidebars
merging these strange things into the commit. I need to learn more about git for sure