Refractor using event and add new feature
# display on line and calculate remaning time