pause menu, and some bug fixes