write helperand partial for home page