arranging dialogboxes