change Media to Medium in controller to reflect model name change