If Else Completed for first Page