changed template folder to models folder