refactor edit and delete project
refactor edit and delete project view logic