Refactor rootscope data to controller, bind friends data to map scope, friends button swaps view