adding devices model and views