adding text/template for sidebar

updating css with javascript