Make it work with multiple apps in active window