Reintroducing view.afterAttach hook