lots of changes for html,view & event class