added "stock buy" functionality