added escape button to pausing