add dialog dismissal animation