support simple grid and list with flag