fixed bug w/ multiple windows opening