change how the framre refresh