improve UI logic