Changed base templates to work with https