Doing update and save stock, transaction, plan to refactor code a bit too