removed render from refresh method