added dialog  for  categories