move setLastMessage for thread to send action