upgraded control.php to take into account guests