Removed some unused files and reduce the dependency (the UI is also changed).