states and views