Used url_for instead of hardcoded links