ScanGroupsController: Changed before_action order to prevent @scan_group overwrite