fix for sticking sort and perpage options