only show edit link in edit mode