[enh] code cleanup.
[enh] Refactor app installation form.