handle nil company
clean up ui