Added url_for routing to templates