Updating ui and singleton class