Adding dirty check.
Merge pull request #13 from feifanhe/master

Fix repetitively open fenu