Update ui and render content