updated ad code to be responsive