Change handle_layout