CHANGED:applied the iAD function of MasterViewController