Code formatting
Move placement of group records checkbox click logic