added editing functionallity to the events table, however it is not saving to db right now