improve offline and PDF features