chages
start making it work for editing events