lots of little fixes, added edit link for events