Added ajax function to add user to a group without refresh