Add a helper to manage padlock icon