added messaging system so its seperate from page