reworked annotation popups so they don't wind up offscreen