clean up the code of MindView