Framework for control the ring mode