updates for button lock on timing function