added add and delete functionality