updated buttons and js