add wait for page redirect