added code to make buttons work

added code in html css and js