updating links using url_for function