Made pause button disabled when necessary