changed the submit mode of the device page to ajax. added an edit mode