making tempate safer to be opened through https