function display on controller.php