hopefully will help the issue

Still doesn't work when in production
version bump
try to use href before general click event

also refactored some code