fixed an issue with saving the state of the activity. Now one can change orientation and nothing will break. Simplified creation of fragments.