First commit for adding GUI dimension support (remember to recompute document after adding dim.)