added endless scrolling and fixed some bugs in the query builder