logic for selecting multiple forms added