Added functionality to send messages amongst pages through the session