fixed a couple of things and speed improvement

-x2 speed improvement on summary.php page
-fixed bug where clicking on a group would give an error