added tickets search, fixes for mailing