Automatic matching of Panel View layout