Removes temp files and moves header links to the application helper.