refractor media controller to use media manager