Refacted ads_contoller