modify the layout and set custom domain