fixed survey summary does not comply to dynamic header parameter. Some more cleanup