'Reset the model and also sets the page to 0 and the new total
host amount will be the length of host.'

def reset_model_after_workspace_changed(self, hosts, total_host_amount):

    self.page = 0
    self.host_amount_total = total_host_amount
    self.reset_model(hosts)
    self.update_progress_label()
