Added routes and controller functionality