pause game when ui opens