Proposed a general event handler