added restart button, fixed paused bugs