minor error fixes and prettying up of buttons in template.  fixed some of the cascading delete issues