Make buttons respond properly