friends page
refactor code and fix message page bugs