add template greed & splitpane