added enable/disable sorting on plans page