check old marked position, add classes
Merge pull request #136 from dentrifonov/fixes-edit

check old marked position, add classes