fix media repo, controller, views