updated the context of media and url