moved home page initiation logic to HomePage