refactor topRenderer