Checking on which window to add the applets