SignatureActivity modifications; not fully tested