to and pause methods and hooking into the click event