fixed few minor thing in edit_ad