implemented sidebar template