reworked main UI