added edit function for users to change type. Shows up in a modal that sumbits to add.  Works wonderfully