Front end replace

now we can do all the replacements on the front-end