Added buttons for stock update and logic to guard against negatives