update styling and toggling of the the main sidebar