advertisements controller modified