Conditions Not Skipping to Correct Page