event merge and canMerge
draft of frontend application