Added savedinstancestate functions for state saving on orientation.