fixed api routes and integrated add and delete functionality for lists