Added device forms. Also converted error messages in tempaltes to CSS alerts