0306: fix button state checking when switching pages