refactor($core): initialize media state after widgets creations