modify the devices template indexjst