move get social profile to a before action