moved ad to main screen; compatibility with java 7