CHANGED:applied the iAD functions for the DetailerViewController