added view page and check for null per page and results per page value.