Added functionality to friends page.