added media section template with controller and some changes in other files