Refactored js and moved do separate file. Started working on update command. Need to fetch right org id to automatically fill in form.
Fixed the org fetching bug when update button selected. Need to implement update to the database.
Implemented and tested update functionality.