button to dismiss is working