Rename self.factory.frame to self.factory.app