functions.php for checkedrooms