add state contrl in videoplayer