implemented saving of settings and get template helper