lock UI: starting time and ending time must be inbetween 8 and 23