added call to didChangePage(index) for delegate