added social buttons and analytics code. fixed deprecation warnings