Improve popup style
Fix popup menues on Firefox

Newer versions of Firefox provide x and y attributes as aliases of the
default left and top attributes of DOMRect instances.
Fix some regressions on Notebook Tabs