interactive grid refactor