edit function show_message and add a demo for message