adds debounce funcitonality

can shorten to 'first_page = not paging'