added class based view for dirSelect

The class based view is more organized and makes it easier
to use for both second and third passes