updating media gallery module