added base template, cleaned template vars in settings