created HUI class to use timers in ui
improved timer