detect page location works for all forms