attempting to show messages on click