Extracted menu monitor code into its own class