Change readonly to 3 state