uncomment event handler code in createnewmav