Fixed the visit form addition bug which was from earlier use of CHOSEN_PATIENT. Reverted all other apps from inline addition to button click dialog based addition due to a JS error. Yet to debug.