Fix some bugs , and do some change on minipanel

Fix some bugs , and do some change on minipanel