adding buttons and js file