added some note alert stuff but not totally working yet.