add count of files grouped by extension, save previous state of popup