UI optimise and bug fix.

Remove mesh can cause crash. Fixed.