display results on ui, refactoring, small ui fixes