refactor application model, and implement web pages ADP