adjust form and templates