pasted code snippet for project and caret dropdown