disabled the things when not in edit mode