Update PoolsController.php