trying a new approach in updating the ui