Added methods to remove menu and error message