updated link_to method for improving speed and AllCategory views