changed the editpost html a little, added update event