all changed to url_for. Need to test on production.