now refreshes when changing page size