generate excel and pdf views