layout and home view initialize