implemented sidebar