refactor(backButton): separate show/hide logic