on mode click update result
add current output to input
Merge pull request #16 from lekhmanrus/dev

dev