implemented persistence on orientation change
added constants