layout dialog - add from code option