edit and update for advertisements