Moves functions outs of social buttons