add WndManager and some interface