Got window switching to work properly

Made it so the window isn't forced to be on top. It only brings it to
the front when launching it