fix problem with cursor inside marker + create css templates.