changes to utils for multi-query serach and general formatting of pages