Pause functionality

Implemented Pause functionality. Middle-click in timer window to pause. 
Also fixed bug where timer would continue after back button press.