Implemented sidebar functionalities.