Changes for responsive design - redraw on resize