state service added

to maintain state and values