separating case and page layouts