implement dialog show and hide animation