fix bug with footer button state not changing correctly