Adding Toggle Lock Button method to all form-based views