page switching and exit on select added