remove some unnecessary ui code