Adding conditional edit link in event details