fix issue where renderMenu may be called before page is fully rendered