Refresh mediaFile after action + refactor