Updated TasksController.php