implemented add device and extended admin funct