added delete and fixed some bugs with routes