refactor the browse chat page some