reorganized the view code to be a simpler 1-line call