now a button to check sample state
integrating sample state to the menu.
scripts to update sample states