add functions in WndController