refactoring room and availability tabs