fix bug in random code, set goal status text