refactor project detail