Add devices template; get form working