The code that drives the mini web app