put in js for buttons