Optimize codes.
Click app to select the window.
Restyle app test page.