removed console logs and added media url