Maintain states during Previous and Next clicks