Getting view to work