Added logic for home page content display