Make ui dependency required, not weak.