Added viewEvents and cancelEvent