using the better replace string in the layout