Update TasksController to use respond_with