update grid view when a subview is added.

This fixes a bug in which newly added subview is not visible on the grid.