Pause Button and cancel timer

Implemented pause button by middle-clicking on the timer window. Click again to resume. 
Fixed bug where timer keep going after back button pressed.