fix(index.js): further impementation of click handlers