Removed event handler function delcaration