hide and show preview message button