fix toggle ui