added buttons and aalytics