Add if state for current page