implement automatic updating of child view position