added e2e-decrypt class handling code and refresh event listener