Adding the Group functionality to form