states can now contain child selectors, demo updated