agent appears in the middle of the window