Added ajax sending of messages for different pages like session, instructor etc.