make ui react to db changes