Edit events through modal window