working code on new transaction form on goal show page