main.c with UI