add some logic codes in MediaControllerOverlay class