added conditional clauses to links on order show page