before change ui