working refreshbutton