add js to disable and enable buttons