pause menu functionality fix