fix for button and better way to add list, fixes frappe/erpnext#702