Implemented jQuery event binding