Added pagination to orders depending on type of user.