added logic to the endpoints in the project list