Added function to add and edit projects and categories