added initial check for valid state in Create Weight Tree Dialog