Pass morph state reference into onClick callback
add merge module
start implementing merge interface
fix wrong indexing on branches
refactor morph: seperate handleClick fn