how put friends list on the sidebar of activity page

Hi everybody

I have a problem. I'm making a theme in elgg and I want to change the place of friend's list from topbar to the sidebar in activity page, but I dont have any idea about how can it done.

I wish you can help me about that.