edit event with jquery dialog