use  to get value of element, to prevent value read before render complete