chaging component states