Merge UI & firebase.