Use extends templates and replace hardcoded url