handle classes on overlay