changing status to state