split layouts to public and common