adding ability to attach to the active pane

fixing issue #9 again…. #27 was/is broken *(was cloned from a old branch)*