added routing, added functions for list and add.