refact Layout feature and let it suuport Multiple-Page layout feature