add smart sort and remove unnecessary header links