adding update/delete functionality