add pagination to orders page; fix bugs;