Fix some problems on getOrderData and add entry on click event