Added Email Log button and functionality