refactored to use link_to_unless helper