added code to block page on timeout