add animation on close