single page refact