fix(index) add previous_page condition