Refactoring to abstract side panel menu and reuse it for the app settings dialog