added view stock functionality