Fix: refactorize for show/hide config page