fixed problem with changing cms layout

closes #60