adding pause button and hooking up events