created update, create, destroy method for events api