fixed problem with changing cms layout
closes #60
Merge pull request #85 from drotter/bugfix/60

fixed problem with changing cms layout