added SubviewController Class and update some old code.