I used the builder pattern with this dialog..the reason you return this from all of those methods is so you can chain methods together.