Hi Andie,
have you gone through this links. here you will get how to add buttons according to that buttons logic too
CRM Web UI Technical - Creating Table View In Web UI - CRM - SCN Wiki
SAP CRM WEB UI : 48.ADDING EDIT,CANCEL AND SAVE BUTTONS TO THE OVERVIEW PAGE TOOLBAR
SAP CRM WEB UI : 49.CODING FOR EDIT, CANCEL AND SAVE BUTTON EVENT HANDLERS
go through that links and let me know if your not achieve your requirement.
Thanks & Regards,
Srinivas.