getAll states onCreate and render view after state changes