added areasosta length in edit form. added deviceService (closes #12).