Added event handling on time bar