fixed bug in delete function, removed ability to delete catergories