used url tag in template instead of hardcoding url