Fix some bugs , and do some change on minipanel

Fix some bugs , and do some change on minipanel
Merge pull request #128 from Fance/master

Fix some bugs , and do some change on minipanel