change to chatroom save function