Migrate UI cleanup phase 4 from MIPS into ARM