Added seperate function to draw pop up message.