Automatically hide menu on setRootViewController