lockFrame