Made buttons on a task disabled when it is hidden.