moved click handler to dom
Merge pull request #40 from khan4019/master

moved click handler to dom