I have a parent component which passes a function down to a child component. when something is clicked in the child it calls the function in the parent to update the parent