First (almost sorta) functional version of the view manager