updated sidebar functionality and styles