State amchine and vis service