adding buttons and analytics