fixed code to compile with removed ui_window.h