add close button and exit animation