made pause button work