add window timeout function