add closing animations to popup