1. refuesed to load config dialog in secured, UI less, and store apps.

2. refactor the array special code funcitons