implement auth dialog with views framework; dialog ref counting