modified monitor page to use new cloud code function