Move selecting accounts/contacts to async task

(untested)