set readonly mode and disable realtion-type selector buttons