integrating UI with backend