added flag for warning page so it comes up when it should