Fix to the lock and unlock ui methods to show the canvas.