fixed left click functionality in index.html