create example for state managing
remove MainPage
finish example managing state