Fixed a logic error + now the window appears in the middle of the
screen!!!