Fixes positioning issues with connection popover. Fixes some issues with removal of the connection popover.