Handle ui safe