added button to show app state