fix button status on reload