FRappe CRM list Buttoon customization

I have added a custom button in the frappe crm Lead ,the button is showing but when i do any function ,its not working .Why?