clearing displaymessage if it is called without text