making layout modular