ajax remove group class and bug fixes