add some funciton on Sale tab and Inventory tab.

-add function ok button on Sale tab and Inventory tab.
-add function cancel button on Sale tab and Inventory tab.
-cancel button have problem, it can go back but there isn't tab on top.
I'm lazy to fix today, i'm sleepy.