trying to figure out resource file opening and sub widget creation.