Fix for autolayouted initial views. At certain point when view is added ...

Fix for case when using autolatyout.
In some cases autoresizing mask is not set and initial view is not displayed after switching state views