updated pdf kit and generate pdf in controller