changed groups ajax to onfocus call