Add Main-window callback