updated method to hide text on the screen