still trying to debug edit-event not working