Fixed the onPageSelected method; now checking if the BTClient is initialized.