Refactor menu stuff into its own control