remove unused functions from display.php