Separated the MenuDrawer logic into a Base class