Handle edited investment fields

Fixes #22

Modeled after the createInvestment functionality.

TODO:
- rename Search investment to create investment.

Other:
- Fixes var name in createInvestment function