adjust code for dialog position upon successful update