add delete fun and modify routes