Added filtering and sorting  for the profile page