Added ui base and main program