Update UI.c

Data sanitation is believed to be complete, if you find an error please let me know. Fixed the error with the button being on for too long.