Define a function initialize_layout