add Lock to windows