patch on dispatch for layout choose