ideas for portal_controller.php