add window refresh to x and y axis