fix labels on resize; add dynamic node size