change ad display logic