Started refactoring the function to render project allocation