Closing UI problem solved