added handling of selecting rooms and send selected rooms data by ajax