fix notices, test ajax constant