fix bug where bottom panel didn't change after clicking boundary button