Fixed clickevents to only start once. Otherwise multiple forms are generated inside editmode