refact home page