'What happens when the user clicks on either self.prev_button
or self.next_button. Change self.page according to the change_page_number_func,
and resets the model to a new list of hosts requested from the server.'

def on_click_move_page(self, button, change_page_number_func, *args, **kwargs):

    self.page = change_page_number_func(self.page)
    hosts = self.get_hosts_function(page=str(self.page), page_size=20, name=self.search_entry.get_text(), sort='vulns', sort_dir='desc')
    self.reset_model(hosts)
    self.update_progress_label()
