added condition for complete project and comple task