New functions to lock view and/or layout