added a timer in view