Handle left and right side buttons