added pause button and fixed animation jankiness