fixed flat edition
modal ok
Merge pull request #26 from alaurenty/addmodalcounter

Addmodalcounter