fixing template to show proper url