Lock button implementation