take out all the notices and put them in the template