Added better response to redraw and render the views after window size is changed