fixes 1

added infrastructure for paging in queries and a widget