brought back propagate input on click
need to debug the merge function