make buttonLeft and buttonRight options optional