change some style issues, and add solution controller, delete useless preference controller