refactoring project CRUD