refactored social buttons and main menu into directives