fixed buy/sell buttons not disabled with unpriced item

some code cleanup too