finished auto-completion with tab
improve split-view handling