construct the view