Added controller for tasks and adjusted routes so that you can operate directly