working pdf export and various charts enhancements