adding device model, form, and views