add method to event model on backend