changes in ads controller and create a index view