added basic support for ui compilation and added main window