supply helper function for retreiving notices via ajax