Moved title out of social function