refactory example page