Move the contents of setup_layout() into create_layout() and make