end time button disabling