Added functionality to e-mail and print buttons