Create a function to handle adding favorite/project item