Trigger attach

I'm taking over #1957. I just did a rebase and a small refactor of `displayedViews`. Just gave this a read through. Even read the massive on-attach spec. I think it's ready to go in. 
:crying_cat_face: