Changing links for the media objects box

1) Fixed the media objects box to have the correct links on load
2) Did the same on ajax successful upload