change static url to generated by method  url_for