add the method to show the state