dialog sorting and new boxes