refactor the way of listing orders