moved autohide on advertisement from grind framework, and handle isAdvertisement parameter