event updated to remove conversion to string as this shouldnt be needed
Added default element.
Parse event to trigger function
depreciated attach.name its replacement is attach.to