Finally fix the timer bug. Move click event to init so that it is not registered multiple time.