Change template to main files