added view and delete functionality