started on logic for different views within HomePageLayout