more work on dialog, starting to refactor to use bottom tabs