connected ui to backend