smart window implementation