lock/unlock all app function