Built the main UI for the app