-- Fixed isValidFragment issue with Android 4.4.

-- Adjusted the ad to not block the gridview content below

-- Adjusted the ordering of the layout variables to ensure the layout is loaded before any content from it is attempted to be queried (to avoid null references).