hide ptbuttons before opening email window so that it doesn't flash then hide if can't encrypt