optimize flood view layout