prevent reload before loading menu