refactored friends page + fixing stuff