showing and hiding preview messages