Fixed some bugs regarding the mail picker in the RenderPDFViewController. Cleaned up code in various classes.