add page change listener for view