adding cancel buttons

Also refactoring the save and edit buttons to use the jquery button
type.