Fix imap account settings sheet. Fix handling of selection on initial start.