Properly connect viewChanged and redraw