Fixed bug in grouping annotations, fixed bug in double-click function to open dialogs