Add render separate home layout as a class function so it doesn't fail on production mode