Add change_layout method and spec