Sidebar menu cleaned up. Code that handles closing menu cleaned up a bit.