when buffer is displayed we refresh the screen , to achieve a frame like display