adjust functions to add and edit ads for the necessary fields are