Edit event flow written. Still not complete as the API is not working