updating time
defining button action
changing time in realtime