finish ui at begining