Fixed handling of edit link, added mailto link