added limit parameter to query function, limiting list view to 500 results