added pageDidChange in sample app