add main UI elements. need fix progressbar crash