got rid of json templates in devicontroller create action