fix add/edit advertisement