Added dynamic storage for standard widgets in the application base class.
Added State enum.