Changed the way running applications/windows was being added