Add a method to close all open menus