added object event handling in view event declaration