completed sidebar functionality.