discover button

Did some work on discovery. Made progress, but not completed. Left in
state that work make app non-functional, so commented out work and left
bugged but workable smaller fix in.