Added logic for the buttons and twitter