refactored events view controller to use nsurlsession