Layer filter when clicking on an object, to open different windows