pause and play buttons
big update in main js