added investigation counts, email popup form, misc. features and fixes