Fix tabs on loading profile and changing editor layout