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. 
Cool