building main UI functionality. created settings, host dialog and remote views.