updated delete and edit functions for manufacturers with error handling