added device add and delete to pinaple