Added variable to store the status of the show/hide. Changed clock to only update when ui is shown