split state from view