improve display after deleting a layout