fix session kept alive issues and menu