Basic framework to add a event into view