remove class when end scene comes