completed logic UI