Fix scope in ViewDialog bean definition