add UI blocking and service controller
fixed wrong syntax