udpating the text and image functions