added states with demo and sleep