view available rooms as a function