view stock function implemented