Added social func to front end