made UI giveable in main