Attched the events and props to object for access