Alert window working at timeout