Add Dialog component for selecting features.

also cleaned up leftovers