refact the home page