added readonly state to controllers