Connect the Assistant with the main windows