Changed the lock/unlock button to a function and call it when you create a top lvl container.