refactor tilebar