generated a media controller with index, video, picture pages