move markup code into new file.