added clientController and change some bugs
added clientController and change some bugs