add dialog animation