Update notification.
Added timeout to ajax call to make it work. This code is poorly written and only working by accident.