layout prepare