nodes change its styles when are selected