search rooms algorithm modified and linked submit pages