added events viewChanged and zoom.