migrate relations to ui-select

@myabc that we should discuss because TAB is not very useful in ui.select's layout and we should either come up with some hotkeys or maybe tab go through ui.selects elements (I don't know which is worse)