refactored so that the *_rest.php file handles the view render.
additionally, if the logic is simple enough, don't need to put it in the
cntrlr