changed switch view menu behavior