adding safe page and dom load time methods