last detail with window resizing and switching between tables fixed. simplified, no need for geometriInitialized state to be kept anymore.