added more function to sidebar