Added support to uiwindow