complete the add project function