debugged crud controller