add animation when showing and dismissing detail popup