added remove ads logic