Add save ui properties function.