re-bind ui elements after closing and re-rendering
build