implemented /task/:id
finished basic function