update state name when changing layer