finished adding add new device functionality
fixed destroy button for devices
added edit functionality for devices