adds statement to get survey before displaying erb