refactor grid views