cleanup of ui