fixing missing mouse pointer in the main switch