fixed bug in notifications and ajax