fixed issue with popover menu and added some ground work for word/char/line count