adding 'active window' option