function to set text in status log