added condition to buy/sell display