Added smooth close animation