changed global timeout to 1 sec for angular