fixed the "both" buttons case (values 3 and -3) by creating two different render arrays