dynamically add ids and click event handler to the project widget