added javascript and some css for buttons