changing states to select