added states controller