reverting dialogue to div