add function to set the GUI message line