fixed save and restore state instance in MainFragment