refine popover behavior for touch, fix show bibtex issue broken by new t...

...ouch javascript