made working state controller for 10 states