moving where to handle nbviews