add show ads logic