Refactor friends html page