Added AJAX and cleaned up formatting issues for groups