lock ui during write requests