Separated views from code for pagination, added saving different values output to separate files