deleted old ui logic